package com.ndp.fb.rdb.api;

import com.ndp.fb.rdb.model.TargetingSpecTemplate;

import java.util.List;

/**
 * Created by Administrator on 2015/3/25.
 */
public interface TargetingSpecTemplateRdbService {
    List<TargetingSpecTemplate> findByUserId(String userId);

    Long save(TargetingSpecTemplate template);

    Integer update(TargetingSpecTemplate template);

    Long countByOrgIdFbConnectionObjectIdProductConfigurationIdAndName(Long orgId, Long fbConnectObjectId, Long productConfigurationId, String name);

    List<TargetingSpecTemplate> findByOrgIdAndFbConnectObjectIdAndProductConfigurationId(Long orgId, Long fbConnectionObjectId, Long productConfigurationId);
}
